package vn.demand.dragon.controller
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import vn.demand.dragon.model.TaskLogProxy;
	import vn.demand.dragon.view.ProjectNavigatorMediator;
	import vn.demand.dragon.view.TaskLogScreenMediator;
	
	public class CloseProjectTaskLogsPanelCommand extends SimpleCommand
	{
		override public function execute( note:INotification ) :void    
		{
			RIALogger.debug(this, "CloseProjectTaskLogsPanelCommand::execute");
			var projectVO:Object = note.getBody();
			var taskMediatorId = TaskLogScreenMediator.makeId(projectVO, true);
			facade.removeMediator(taskMediatorId);
			facade.removeMediator(ProjectNavigatorMediator.NAME + "::" + taskMediatorId);
			facade.removeProxy(TaskLogProxy.NAME); //remove task proxy
        }
	}
}